﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using ExcelLibrary;
using ExcelLibrary.SpreadSheet;
using QiHe.CodeLib;
using System.Collections.ObjectModel;
 

namespace CECB
{
    /// <summary>
    /// Interaction logic for xx.xaml
    /// </summary>
    public partial class xx : Window
    {
        public xx()
        {
            InitializeComponent();


           // TreeView tv = new TreeView();
            
            // Add root node  
            treeView1.Items.Add(new TreeViewItem() { Header = "Root Item 1" });

            // Add items to root node  
            ((TreeViewItem)treeView1.Items[0]).Items.Add(new TreeViewItem() { Header = "First Item" });
            ((TreeViewItem)treeView1.Items[0]).Items.Add(new TreeViewItem() { Header = "Second Item" });
            ((TreeViewItem)treeView1.Items[0]).Items.Add(new TreeViewItem() { Header = "Third Item" });
            
            treeView1.Items.Add(new TreeViewItem() { Header = "Root Item 2" });

            ((TreeViewItem)treeView1.Items[1]).Items.Add(new TreeViewItem() { Header = "First Item" });
            ((TreeViewItem)treeView1.Items[1]).Items.Add(new TreeViewItem() { Header = "Second Item" });
            ((TreeViewItem)treeView1.Items[1]).Items.Add(new TreeViewItem() { Header = "Third Item" });

        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            new V_FillMatrix_Window().ShowDialog();
        }

        
         
    }


    
}
